const checkAge = (age)=>{
  let min = 18
  return age >= min
}

// const checkAge = (age,min)=> age>=min

const curryCheckAge = (min)=>{
  return (age)=>age >= min
}

const checkAge18 = curryCheckAge(18)
console.log(checkAge18(17))
console.log(checkAge18(27))